package com.darren.euc.service;

import java.util.List;
import java.util.Map;

import com.darren.euc.entity.HanWangDoor;
import com.darren.euc.entity.PageBean;

import net.sf.json.JSONObject;

public interface HanWangDoorService {
    
	public HanWangDoor save(HanWangDoor hanWangDoor);
    
	public HanWangDoor update(HanWangDoor hanWangDoor);
	
	public HanWangDoor findById(Integer hanWangDoorId);
	
	public void delete(HanWangDoor hanWangDoor);
    
	public List<HanWangDoor> getAll();
	
	public int updateHanWangConnectionStatus(Integer id,Integer connectionStatus);

	public List<HanWangDoor> getMainHanWangDoorBySpaceIdNotEquelsId(Integer spaceId,Integer hanwangId);
	
	public List<HanWangDoor> getMainHanWangDoorBySpaceId(Integer spaceId);
	
	public List<HanWangDoor> getHanWangDoorByMemberId(Integer memberId);
	
	public Map<String,Object> hanWangDoorDevice(HanWangDoor hanWangDoor);
	
	public String bindingCard(Integer memberId);
	
	public String unbindingCard(Integer memberId);
    
	public String bindingEmployeeCard(Integer spaceId);
	
	public String updateHanWangManager(Integer spaceId);
	
	@SuppressWarnings("rawtypes")
	public PageBean queryForPageUseHQL(JSONObject requestJson,Integer pageSize, Integer currentPage);
    
}